Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be different. For example, “abcd” and “dabc” are an anagram of each other....
Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”...
Coding Round had 4 sections and time duration was 2 hours:...
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling in those days. For example, if the given array is {100, 180, 260, 310, 40, 535, 695}, the maximum profit can earned by buying on day 0, selling on day 3. Again buy on day 4 and sell on day 6. If the given array of prices is sorted in decreasing order, then profit cannot be earned at all....
Given a linked list where every node represents a linked list and contains two pointers of its type:...
QuickSort is a sorting algorithm based on the Divide and Conquer algorithm that picks an element as a pivot and partitions the given array around the picked pivot by placing the pivot in its correct position in the sorted array....
Given a string, the task is to reverse the order of the words in the given string....
The problem is opposite of this post. We are given a stack data structure with push and pop operations, the task is to implement a queue using instances of stack data structure and operations on them....
Goldman Sachs visited our campus on 5 Aug 2021 for Summer Internship 2022....
Goldman Sachs visited our campus for both full placement(NAPA) and internship. I am going to share my experience for internship....
Given an array key of size n, instruction count representing the number of keys a hijacker can test per second, during a total validity period which is the average time to find a message key, determine if the encrypted information remains confidential throughout its validity period. Each function will return two items of information as integers:...
I was contacted by a recruiter for the role of Software Engineer – Java developer. Goldman Sachs was coming to Hyderabad for a drive. They call it Super Day....